package com.gome.server;

import com.gome.transactiontree.api.TransactionNode;

public class ServerAImpl implements ServerA {

	@TransactionNode(commit = "s1_confirm", rollback = "s1_cannel")
	public String s1(String txid, String p2) {
		System.out.println("s1调用：" + " 事物ID" + txid);
		if(true){
			throw new RuntimeException("ccccc"); 
		}
		return txid;
	}

	public void s1_confirm(String txid, String p2) {
		System.out.println("s1_confirm调用：" + " 事物ID" + txid);
	}

	public void s1_cannel(String txid, String p2) {
		System.out.println("s1_cannel调用：" + " 事物ID" + txid);
	}

}
